import 'package:flutter/material.dart';
import 'package:trollee/app/core/values/colors.dart';
import 'package:trollee/app/core/values/styles.dart';

final ThemeData appThemeData = ThemeData(
  // 自定义字体, 看设计需求
  // fontFamily: 'Satoshi',
  primaryColor: AppColors.primary_color,
  backgroundColor: AppColors.background_color_common,
  colorScheme: const ColorScheme.light(primary: AppColors.primary_color),
  buttonTheme: const ButtonThemeData(
    splashColor: AppColors.primary_color2,
    highlightColor: Colors.white,
    buttonColor: AppColors.primary_color,
    textTheme: ButtonTextTheme.primary,
  ),
  textButtonTheme: TextButtonThemeData(
    style: TextButton.styleFrom(
      padding: EdgeInsets.zero,
      tapTargetSize: MaterialTapTargetSize.shrinkWrap,
      minimumSize: Size.zero,
      primary: AppColors.primary_color,
    ),
  ),
  elevatedButtonTheme: ElevatedButtonThemeData(
    style: ElevatedButton.styleFrom(
      tapTargetSize: MaterialTapTargetSize.shrinkWrap,
      minimumSize: Size.zero,
      primary: AppColors.primary_color,
      shape: const StadiumBorder(),
    ),
  ),
  outlinedButtonTheme: OutlinedButtonThemeData(
    style: OutlinedButton.styleFrom(
      tapTargetSize: MaterialTapTargetSize.shrinkWrap,
      minimumSize: Size.zero,
      shape: const StadiumBorder(),
    ),
  ),
  inputDecorationTheme: InputDecorationTheme(
    // isDense: true,
    contentPadding: EdgeInsets.zero,
    hintStyle: AppTextStyles.body1_14_Regular_primary
        .copyWith(color: AppColors.font_color_secondary),
    border: InputBorder.none,
  ),

);
